import request from '@/utils/request'

//优惠劵列表
export function getCashVolumeRecordList(obj) {	
  return request({
    baseURL: window.getIps+'/4SCAFE/CashVolumeRecord/getCashVolumeRecordList.action',
    method: 'post',  
    params:obj
  })
}

//优惠劵新增/编辑
export function saveCashVolumeRecord(obj) {	
  return request({
    baseURL: window.getIps+'/4SCAFE/CashVolumeRecord/saveCashVolumeRecord.action',
    method: 'post',  
    params:obj
  })
}

//加载劵使用范围
export function selectionRange(obj) {	
  return request({
    baseURL: window.getIps+'/4SCAFE/CashVolumeRecord/selectionRange.action',
    method: 'post',  
    params:obj
  })
}

//优惠券删除
export function deleteCashVolumeRecord(id) {	
  return request({
    baseURL: window.getIps+'/4SCAFE/CashVolumeRecord/deleteCashVolumeRecord.action',
    method: 'post',  
    params:{CASHVOLUMERECORD_ID:id}
  })
}

//优惠券详情
export function getCashVolumeRecordById(id) {	
  return request({
    baseURL: window.getIps+'/4SCAFE/CashVolumeRecord/getCashVolumeRecordById.action',
    method: 'post',  
    params:{CASHVOLUMERECORD_ID:id}
  })
}

//会员列表
export function cafeMemberList(obj) {	
  return request({
    baseURL: window.getIps+'/4SCAFE/CarUser/cafeMemberList.action',
    method: 'post',  
    params:obj
  })
}

//优惠券批量发放
export function issueCashVolume(obj) { 
  return request({
    baseURL: window.getIps+'/4SCAFE/CashVolumeRecord/issueCashVolume.action',
    method: 'post',  
    params:obj
  })
}

//分发记录列表
export function getIssueCashVolumeRecordList(obj) { 
  return request({
    baseURL: window.getIps+'/4SCAFE/CashVolumeRecord/getIssueCashVolumeRecordList.action',
    method: 'post',  
    params:obj
  })
}

//获取分发手机号
export function getIssuePhone(id) { 
  return request({
    baseURL: window.getIps+'/4SCAFE/CashVolumeRecord/getIssuePhone.action',
    method: 'post',  
    params:{CASHVOLUMERECORD_ID:id}
  })
}